$(document).ready(function() {
	generarDoc();
});

function generarDoc(){
	for(var i=0;i<100;i++){
		//setTimeOut(imprimir(),1);
		imprimir();
	}
	
}

function imprimir(){
	var f = (new Date).getTime();
	$("#div1").append(f+"<br>");
}

function getFecha(){
	  var d = new Date();
	    var curr_date = d.getDate();
	    var curr_month = d.getMonth() + 1; //Months are zero based
	    var curr_year = d.getFullYear();
	    return(curr_date + "/" + curr_month + "/" + curr_year);

}